package cn.kgc.javaweb.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: mosin
 * @version: v1.0  2022/3/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ExcelTarget("student")//唯一的标识符
public class Student implements Serializable {

    @Excel(name="姓名",orderNum = "1")  // 设置表格中的字段名
    private String name;
    @Excel(name="年龄")
    private Integer age;
    @Excel(name="性别", suffix = "生")
    private String  sex;
    @Excel(name="邮箱",width = 35)
    private String email;
    @Excel(name="生日",format = "yyyy-MM-dd",width = 35)
    private Date birth;

}
